package com.ld.control.business.user.vo.resp;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 系统菜单表
 * </p>
 *
 * @author wangfeng
 * @since 2024-04-12
 */
@Data
@Schema(description="系统菜单表")
public class MenuTreeRespVo implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "父级菜单id,0是最外层菜单")
    private Long parentId;

    @Schema(description = "菜单code")
    private String code;

    @Schema(description = "菜单名称")
    private String name;

    @Schema(description = "菜单图标")
    private String icon;

    @Schema(description = "菜单路径")
    private String url;

    @Schema(description = "0:页面，1:按钮")
    private Integer type;

    @Schema(description = "层级1-2-3")
    private String level;

    @Schema(description = "对于后端接口,如果不请求接口则为null")
    private String apiUrl;

    @Schema(description = "排序值")
    private Integer sort;

    @Schema(description = "下级菜单")
    private List<MenuTreeRespVo> children;

}
